import request from '@/utils/request'


export default {
    getHouseListPage(current,limit,houseQuery){
        return request({
            url: `/proservice/pro-house/pageHouseCondition/${current}/${limit}`,
            method: 'post',
            data:houseQuery
        })
    },
    deleteHouseById(id){
        return request({
            url: `/proservice/pro-house/${id}`,
            method: 'delete'
        })
    },
    addHouse(proHouse){
        return request({
            url: `/proservice/pro-house/addHouse`,
            method: 'post',
            data: proHouse
        })
    },
    getHouseById(id){
        return request({
            url: `/proservice/pro-house/getHouse/${id}`,
            method: 'get'
        })
    },
    updateHouseInfo(proHouse){
        return request({
            url: `/proservice/pro-house/updateHouse`,
            method: 'post',
            data: proHouse
        })
    }
}

